package com.jeesite.common.utils.excel.fieldtype;

import java.util.List;

import org.springframework.util.StringUtils;

import com.jeesite.modules.edu.entity.EduIndustry;
import com.jeesite.modules.sys.utils.EduUtils;

public class EduIndustryType {
	public static String setValue(Object eduIndustry) {
		if (StringUtils.isEmpty(eduIndustry)) {
			return "";
		}
		List<EduIndustry> list = EduUtils.getEduIndustryAllList();
		
		for(EduIndustry edu:list) {
			if(edu.getId().equals(((EduIndustry)eduIndustry).getId())) {
				return edu.getTreeNames();
			}
		}
		return "";
	}
}
